package com.eureka.server;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Component
//加入这个注解 并且name值必须与被调用服务注册在注册中心上的名称一致
@FeignClient(name = "EP2")
public interface EP2Server {

    @RequestMapping(value = "/demo",method = RequestMethod.POST)
        //记住加入@RequestParam("goodID")  否则会报错（500）
    String demo(@RequestParam("abc") String abc);
}
